package
{
	import com.hobbit.utils.Browser;
	
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.utils.setTimeout;
	
	import starling.core.Starling;
	
	[SWF(frameRate="30", width="1280", height="768", backgroundColor="0x333333")]
	public class Orion extends Sprite
	{
		private var mStarling:Starling;
		
		public function Orion()
		{
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			
			if(Browser.checkBrowser(Browser.IE))			
				setTimeout(initStarling,200);
			else
				initStarling();
		}
		
		private function initStarling():void
		{
			mStarling = new Starling(Main, stage);
			mStarling.antiAliasing = 1;
			mStarling.start();
		}
		
	}
}